package com.yuanfeng.goods.mapper;

import com.yuanfeng.goods.dto.HotGoodsDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName GoodsHotMapper
 * @Description 爆品
 * @Author cf
 * @Date 2023/6/27 9:16
 * @Version 1.0
 */
@Mapper
public interface GoodsHotMapper {

    /**
     * 添加爆品
     * @param record
     * @return
     */
    int insertHotGoodsBatch(@Param("record") List<HotGoodsDTO> record);

    /**
     * 查询爆品
     * @param commonId
     * @return
     */
    List<HotGoodsDTO> queryHotGoods(@Param("commonId") Integer commonId);

    HotGoodsDTO selectByPrimaryKey(Integer goodsId);

}
